package org.jeecg.modules.oms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.oms.entity.ProductSalesOrderDetail;

import java.util.List;

/**
 * 成品销售订单明细 Mapper
 */
@Mapper
public interface ProductSalesOrderDetailMapper extends BaseMapper<ProductSalesOrderDetail> {
    
    /**
     * 根据订单ID查询订单明细
     * @param orderId 订单ID
     * @return 订单明细列表
     */
    List<ProductSalesOrderDetail> getDetailListByOrderId(@Param("orderId") String orderId);
    
    /**
     * 根据订单ID删除订单明细
     * @param orderId 订单ID
     * @return 影响行数
     */
    int deleteDetailByOrderId(@Param("orderId") String orderId);
} 